package org.hegang.design.first.bridgepattern;

/**
 * @ClassName BridgePatternMain
 * @Describe: 桥接模式
 * @Author: gang.he
 * @Email: SmileSkylife@outlook.com
 * @Date: Created in 14:10 2019/8/15
 * @Modified_By: TODO
 * @Version: V1.0
 */
public class BridgePatternMain {
    public static void main(String[] args) {
        Shape redCircle = new Circle(100,100, 10, new RedCircle());
        Shape greenCircle = new Circle(100, 100, 10, new GreenCircle());

        redCircle.draw();
        greenCircle.draw();
    }
}
